<?php

defined('SYSPATH') or die('Access error!');

class Controller_Soft extends Controller_Main
{

    private $news;

    public function before()
    {
        parent::before();
        $this->news = Model::factory('news');
        $this->template->assign('selected_menu', 'soft');
    }

    public function action_index()
    {
        //软件列表
        $softs_list= $this->news->get_allnews_list_by_category_id('159');
        $this->template->assign('softs_list', $softs_list['list']);
        var_dump($softs_list);
        $this->template->assign('page', $softs_list['page']);
//        //当前位置
//        $this->get_category_position('159', 'news', URL::site('study/list'), FALSE);
//        
//        //seo相关
//        $this->get_category_seo('159','news');
        
        $this->template->view('soft');
    }

}